#!/usr/bin/env bash

tcpdump -i any port 10002 -nn -A -s0 | grep -iE "errorCode|method"



curl 'http://neo-api-control.smarthome-test-connectlife:10002/control/tokenCheck' -d '{
    "accessToken": "ta3SQFGCpIE-_ZFaGjzlw2GhgDsT34bewAPFQUAfa5Vz8EdoLWABMKGDHrkvXYaqH86HdAhKJXfFaejzlZTj0f85HUcTow8GaD2CfLtbyRFIKmRjRtFTg54IWsu3GN8vl8CiboNhkezeUpkW7zItwXfF66ZezWlVLmoExkUVTj2KcQRpV4_0KJCp3lkcpuFQnyH5qtdG_KVVIxZid25Dr0h1fXyb_mCgAZkwvGpJ-dHOP1qOjrfBOTuhDaiDIohcB3mm3vvmAfdnEhWuIjcqnUPTIMkCrzHZRCyqfPuEB28Lz0cSd2EV61a4N_3JSA7-BxDWuS1QMQiutNHaepBo0CYF36kl7gf7_PImrd2xZjiEdkmnPdRjtHCk2gyzccPhshnwdJDpqj-a9kuFugH3MOe0g",
    "path": "/clife-svc/pu/get_device_status_list"
}'


curl -k -H "content-type: application/json; charset=utf-8" \
--data-binary "HENC-Cuvml96QZdY3hLOZdtGVQkPl/PonK6FpVHl78huWyXucxDsTrsEZC5O/0+m9X3bSfosH0D/G+S5pBWyPShySVPVovoWEZyTSRJIs67kk2wCTQRmDJa4OS5ZMbNz5ZzwKI8PL7bNyuDkZfLSFyTAFULRZyb0l1dJteBuw4cAkA+2rppuyzOGkcGUZ14AkR54vYpZ1dlnpNK1zdBpfyJ0WPp9lg/5/RTw5LyzM2RUcXjxUBpQhqOfVtaJTn4EeAxeX7p5IOG5rS04lnczVdmdQhLwpkU0ZUYSKFGPqgrg7AJhBAdHuHinSla00SW+7/hP8hguc1jecXYN80+2FoWf6RHl3ZY04mWVAua60xFnnEK/M1pV3FcJ+SHs+kNprWHuNXvPFGe8ETBQqtJWP4tiPFw==" \
--compressed "https://test-juapitcp5-connectlife-3ba48b7e6e0c9cbd.elb.eu-central-1.amazonaws.com/account/acc/login_pwd"


curl -vvv -XPOST -H 'content-type:application/json' http://neo-api-control:10002/control/validate -d '{"path": "/account/acc/login_pwd", "contentType": "application/json", "method": "POST", "body": "HENC-Cuvml96QZdY3hLOZdtGVQkPl/PonK6FpVHl78huWyXucxDsTrsEZC5O/0+m9X3bSfosH0D/G+S5pBWyPShySVPVovoWEZyTSRJIs67kk2wCTQRmDJa4OS5ZMbNz5ZzwKI8PL7bNyuDkZfLSFyTAFULRZyb0l1dJteBuw4cAkA+2rppuyzOGkcGUZ14AkR54vYpZ1dlnpNK1zdBpfyJ0WPp9lg/5/RTw5LyzM2RUcXjxUBpQhqOfVtaJTn4EeAxeX7p5IOG5rS04lnczVdmdQhLwpkU0ZUYSKFGPqgrg7AJhBAdHuHinSla00SW+7/hP8hguc1jecXYN80+2FoWf6RHl3ZY04mWVAua60xFnnEK/M1pV3FcJ+SHs+kNprWHuNXvPFGe8ETBQqtJWP4tiPFw=="}'